package org.bing.engine.common.scheduler;

public class TaskWrapper extends AbstractTask {
    private String name;
    private Runnable task;

    @Override
    public void doTask() {
        task.run();
    }

    public Runnable getTask() {
        return task;
    }

    public void setTask(Runnable task) {
        this.task = task;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
